package com.unicom.vw.modules.sys.service.impl;

import com.unicom.vw.modules.sys.dao.DownloadAddressDao;
import com.unicom.vw.modules.sys.entity.DownloadAddressEntity;
import com.unicom.vw.modules.sys.service.DownloadAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("downloadAddressService")
public class DownloadAddressServiceImpl implements DownloadAddressService {

    @Autowired
    private DownloadAddressDao downloadAddressDao;

    @Override
    public DownloadAddressEntity queryObject(Integer id){
        return downloadAddressDao.queryObject(id);
    }

    @Override
    public List<DownloadAddressEntity> queryList(Map<String, Object> map){
        return downloadAddressDao.queryList(map);
    }

    @Override
    public List<DownloadAddressEntity> getAll(Map<String, Object> map){
        return downloadAddressDao.getAll(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map){
        return downloadAddressDao.queryTotal(map);
    }

    @Override
    public void save(DownloadAddressEntity downloadAddress){
        downloadAddressDao.save(downloadAddress);
    }

    @Override
    public void update(DownloadAddressEntity downloadAddress){
        downloadAddressDao.update(downloadAddress);
    }

    @Override
    public void delete(Integer id){
        downloadAddressDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids){
        downloadAddressDao.deleteBatch(ids);
    }

}
